package com.yuw.staticinnerclass;

import org.junit.Test;

public class TestDriver {
    @Test
    public void test01() {
        // 创建一个学生类
        Student student = new Student();
        student.setStuName("张三");
        // 调用学生类的静态内部类
        Student.StuFamilyInfo stuFamilyInfo =
                new Student.StuFamilyInfo("张三", "15012345678");
        // 调用主类和内部类的行为方法，当然可以在主类中调用内部类的行为方法
        student.sayHello();
        stuFamilyInfo.printFamiliInfo();
    }
}

